﻿@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Toque</title>
</head>
<body>
    @if (ViewBag.Error == true)
    {
        <div class="alert alert-danger" role="alert">Fechas ingresadas incorrectas</div>
    }
    <label>
        <div class="panel panel-default">
            <div class="panel-heading">Filtrar</div>
            <div class="panel-body">
                <form method="post" action="@Url.Action("Resumen", "Empresa")">
                    <label>
                        <label>Desde fecha</label>
                        <input type="date" required="required" class="form-control" name="desde" />
                        <label>Hasta fecha</label>
                        <input type="date" required="required" class="form-control" name="hasta" />
                        <div style="padding-top: 1em">
                            <button type="submit" class="btn btn-default">Aceptar</button>
                        </div>
                    </label>
                </form>
            </div>
        </div>
    </label>
    <table class="table table-striped">
        <thead>
            <tr style="background-color: #808080">
                <th class="th-center">Nombre</th>
                <th class="th-center">Catidad de toques</th>
            </tr>
        </thead>
        <tbody>
            @foreach (var item in Model)
            {
                <tr style="background-color: #a9a7a7">
                    <td class="td-center">@item.Key.Nombre</td>
                    <td class="td-center">@item.Count</td>
                </tr>
            }
        </tbody>
    </table>
</body>

</html>

